<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <IsPackable>true</IsPackable>
    </PropertyGroup>

    <PropertyGroup>
        <RootNamespace>AM.Avalonia</RootNamespace>
        <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    </PropertyGroup>

    <ItemGroup>
        <AvaloniaResource Include="Assets\**" />
    </ItemGroup>

    <PropertyGroup>
        <Description>Avalonia support for Ars Magna</Description>
        <Title>Avalonia support for Ars Magna</Title>
    </PropertyGroup>

    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
        <DocumentationFile>bin\Debug\AM.Avalonia.xml</DocumentationFile>
    </PropertyGroup>

    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
        <DocumentationFile>bin\Release\AM.Avalonia.xml</DocumentationFile>
    </PropertyGroup>

    <ItemGroup>
        <ProjectReference Include="..\AM.Core5\AM.Core5.csproj" />
    </ItemGroup>

    <ItemGroup>
        <AvaloniaResource Remove="Styles\**\*.axamll" />
        <AvaloniaResource Include="Styles\**\*.axaml">
            <SubType>Designer</SubType>
        </AvaloniaResource>
    </ItemGroup>


    <!-- Централизованное управление пакетами -->
    <ItemGroup>
        <PackageReference Include="ActiproSoftware.Controls.Avalonia" />
        <PackageReference Include="Avalonia" />
        <PackageReference Include="Avalonia.Controls.DataGrid" />
        <PackageReference Include="Avalonia.Controls.TreeDataGrid" />
        <PackageReference Include="Avalonia.Desktop" />
        <PackageReference Include="Avalonia.Diagnostics" />
        <PackageReference Include="Avalonia.Labs.Controls" />
        <PackageReference Include="Avalonia.Labs.Lottie" />
        <PackageReference Include="Avalonia.Labs.Qr" />
        <PackageReference Include="Avalonia.Markup.Xaml.Loader" />
        <PackageReference Include="Avalonia.ReactiveUI" />
        <PackageReference Include="Avalonia.Skia" />
        <PackageReference Include="Avalonia.ThemeManager" />
        <PackageReference Include="Avalonia.Themes.Fluent" />
        <PackageReference Include="Avalonia.Themes.Simple" />
        <PackageReference Include="CommunityToolkit.Mvvm" />
        <PackageReference Include="Citrus.Avalonia" />
        <PackageReference Include="DynamicData" />
        <PackageReference Include="DynamicData.ReactiveUI" />
        <PackageReference Include="GridExtra.Avalonia" />
        <PackageReference Include="Live.Avalonia" />
        <PackageReference Include="Material.Avalonia" />
        <PackageReference Include="Microsoft.Extensions.Logging" />
        <PackageReference Include="Newtonsoft.Json" />
        <PackageReference Include="ReactiveHistory" />
        <PackageReference Include="ReactiveUI" />
        <PackageReference Include="ReactiveUI.Fody" />
        <PackageReference Include="SkiaSharp" />
        <PackageReference Include="System.Linq.Async" />
    </ItemGroup>

    <ItemGroup>
        <AvaloniaXaml Remove="Source\ExtendedToolkit\Styles\Themes\Theme.Template.axaml" />
    </ItemGroup>

</Project>
